package dbHelper.course;

import java.rmi.RemoteException;

import po.coursepo.ClassTime;
import Enum.Week;

public class ClassTimeDivider {
	public static ClassTime getObject(String str ,String splitKey) throws NumberFormatException, RemoteException{
		String[] timeSpli = str.split(splitKey);
		ClassTime time = new ClassTime(Integer.parseInt(timeSpli[3]) , Integer.parseInt(timeSpli[4]) , Week.valueOf(timeSpli[0]),Integer.parseInt(timeSpli[1]),Integer.parseInt(timeSpli[2]));
		return time;
	}
}
